#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import testoption_blueprint
from api.testOptionResource.testOptionResource import TestOptionResource
from api.testOptionResource.testOptionOtherResource import TestOptionOtherResource

api = Api(testoption_blueprint)

api.add_resource(TestOptionResource, '/testOption/<option_id>', '/testOption', endpoint='TestOption')


@testoption_blueprint.route('/testoption/update/<option_id>', methods=['PUT'], endpoint='TestOptionUpdate')
def update(option_id):
    return TestOptionOtherResource.sensitive_update(option_id)
